package org.ouwa.lms.server;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

public class PersistenceManagerSingleton {
	private static final PersistenceManagerFactory PMF = 
		JDOHelper.getPersistenceManagerFactory("transactions-optional");
	
	/**
	 * Private constructor prevents instantiation from other classes.
	 */
	private PersistenceManagerSingleton() {
		
	}
	
	public static PersistenceManager getPersistenceManager() {
		return PMF.getPersistenceManager();
	}
}
